SftTree/OCX 7.0

SftTree.CellBackColor Property

Softel vdm, Inc.

Defines the background color used to draw an item's cell that is not selected.

Deprecated - Provided for compatibility with earlier versions only - Use Cell.BackColor instead

Syntax       

Get

VB.NET

Clr = object.get_CellBackColor(ByVal ItemIndex As Integer, ByVal ColIndex As Short)  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.CellBackColor(ByVal ItemIndex As Long, ByVal ColIndex As Integer)  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.get_CellBackColor(int ItemIndex, short ColIndex);

VC++

OLE_COLOR Clr = object->CellBackColor[long ItemIndex][short ColIndex];
OLE_COLOR Clr = object->GetCellBackColor(long ItemIndex, short ColIndex);

C

HRESULT object->get_CellBackColor(long ItemIndex, short ColIndex, OLE_COLOR* Clr);

Delphi

Clr := object.CellBackColor[ItemIndex : Integer; ColIndex : Smallint]  : TColor;

Put

VB.NET

object.set_CellBackColor(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Clr As System.Drawing.ColorLanguage-specific information)

VB

object.CellBackColor(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Clr  As OLE_COLOR

C#.NET

void object.set_CellBackColor(int ItemIndex, short ColIndex, uintLanguage-specific information Clr);

VC++

OLE_COLOR object->CellBackColor[long ItemIndex][short ColIndex] = Clr;
void object->PutCellBackColor(long ItemIndex, short ColIndex, OLE_COLOR Clr);

C

HRESULT object->put_CellBackColor(long ItemIndex, short ColIndex, OLE_COLOR Clr);

Delphi

object.CellBackColor[ItemIndex : Integer; ColIndex : Smallint] := Clr  : TColor;

object

A SftTree object.

ItemIndex

The zero-based item index.  The combination of ItemIndex and ColIndex describes an individual cell.

ColIndex

The zero-based column number.  The combination of ItemIndex and ColIndex describes an individual cell.

Clr

Defines the background color used to draw an item's cell that is not selected.  For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Cell.BackColor instead

The CellBackColor property defines the background color used to draw an item's cell that is not selected.

The cell described by ItemIndex, ColIndex has the background color attribute Clr.  This color is used as background color when the item is not selected.  If the item is selected and uses a suitable selection style (Items.SelectStyle), the Cell.SelectBackColor property is used instead.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com